<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                template="./../templates/StakeholderPortalTemplate.xhtml">

    <h:head>
        <title>Stakeholder Locale Management</title>
    </h:head>
    <ui:define name="content">
        <f:view beforePhase="#{stakeholderLocaleManagedBean.initView}">
            <h:form>
                <p:panel header="#{bundle['locale.management.panel']}">
                    <h:panelGrid columns="2" cellpadding="3" cellspacing="4">
                        <h:outputText value="#{bundle['stakeholder.cbiz.label']}"/>
                        <p:inplace editor="true" label="#{stakeholderLocaleManagedBean.cBizName}  [Click to edit]"  
                                   onEditUpdate="msgs" style="width:550px;"> 
                            <p:inputText id="corpName" value="#{stakeholderLocaleManagedBean.cBizName}"/>
                        </p:inplace> 

                        <h:outputText value="#{bundle['stakeholder.cdesc.label']}" />
                        <p:inplace editor="true" label="#{stakeholderLocaleManagedBean.cBizDesc} [Click to edit]"  
                                   onEditUpdate="msgs" style="width:550px;"> 
                            <p:inputTextarea id="sDesc" value="#{stakeholderLocaleManagedBean.cBizDesc}"
                                             style="width:550px; height:80px;" required="false"/>
                        </p:inplace> 
                    </h:panelGrid>
                    <p:separator />  
                    <h:panelGrid columns="2" cellpadding="3" cellspacing="4">

                        <h:outputText value="#{bundle['stakeholder.mbiz.label']}" />
                        <p:inplace editor="true" label="#{stakeholderLocaleManagedBean.mBizName} [Click to edit]"  
                                   onEditUpdate="msgs" style="width:550px;"> 
                            <p:inputText id="mcorpName" value="#{stakeholderLocaleManagedBean.mBizName}"/>
                        </p:inplace> 

                        <h:outputText value="#{bundle['stakeholder.mdesc.label']}" />
                        <p:inplace editor="true" label="#{stakeholderLocaleManagedBean.mBizDesc} [Click to edit]"  
                                   onEditUpdate="msgs" style="width:550px;"> 
                            <p:inputTextarea id="mDesc" value="#{stakeholderLocaleManagedBean.mBizDesc}"
                                             style="width:550px; height:80px" required="true"/>
                        </p:inplace> 

                        <p:growl id ="msgs" showDetail="true"></p:growl>
                        <p:commandButton actionListener="#{stakeholderLocaleManagedBean.saveStakeholderPortalInfo}" update="msgs" value="Save" />

                    </h:panelGrid>

                </p:panel>

            </h:form>

        </f:view>
    </ui:define>
</ui:composition>
